const gulp = require('gulp')
const prefixerBuffer = require('./prefixer-buffer')
const prefixerStream = require('./prefixer-stream')

gulp.task('buffer', function () {
  return gulp.src('test.js')
    .pipe(prefixerBuffer('// prepend text buffer\r\n'))
    .pipe(gulp.dest('dist'))
})

gulp.task('stream', function () {
  return gulp.src('test.js', { buffer: false })
    .pipe(prefixerStream('// prepend text stream\r\n'))
    .pipe(gulp.dest('dist'))
})
